class SporadicIncomeEntity {
  List<SporadicIncomeInfo>? rows;

  SporadicIncomeEntity({
    this.rows,
  });

  factory SporadicIncomeEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['rows'] as List?;
    List<SporadicIncomeInfo> protocolList =
        (originList??[]).map((value) => SporadicIncomeInfo.fromJson(value)).toList();
    return SporadicIncomeEntity(
      rows: protocolList,
    );
  }
}

class SporadicIncomeInfo {
  String? sourceDesc;
  String? expenseItemName;
  String? createdDate;
  String? createdByName;
  String? billingUnitName;
  String? elderHumanName;
  String? name;
  double? price;
  double? money;
  int? num;
  int? source;
  int? id;

  SporadicIncomeInfo({
    this.sourceDesc,
    this.expenseItemName,
    this.createdDate,
    this.createdByName,
    this.price = 0.0,
    this.money,
    this.num,
    this.source,
    this.billingUnitName,
    this.name,
    this.elderHumanName,
    this.id,
  });

  SporadicIncomeInfo.fromJson(Map data) {
    sourceDesc = data['sourceDesc'];
    expenseItemName = data['expenseItemName'];
    createdDate = data['createdDate'];
    createdByName = data['createdByName'];
    price = data['price'];
    money = data['money'];
    num = data['num'];
    source = data['source'];
    elderHumanName = data['elderHumanName'];
    billingUnitName = data['billingUnitName'];
    name = data['name'];
    id = data['id'];
  }
}
